import { createPinia } from "pinia";
import { createPersistedState } from 'pinia-plugin-persistedstate'
import {PROJECTNAME} from "@/constant";


const piniaStore = createPinia()
// piniaStore.use(piniaPluginPersistedstate)
piniaStore.use(
  createPersistedState({
    key: id => `${PROJECTNAME}__${id}`,
  })
)

export default piniaStore;
